package com.example.yiqiuser.util;

/**
 * @ fileName:ResultStatus
 * @ description:  枚举类   定义一些固定的常量  供团队统一使用，不可以自行更改
 *         （如果想改确定固定的常量，需要团队开会一致统一）
 * @ author:zhz
 * @ createTime:2023/3/22 9:48
 * @ version:1.0.0
 */
public enum ResultStatus {
    //定义常量
    SUCCESS(200,"执行成功"),
    ERROR(500,"执行失败");

    //返回码
    private  Integer  returnCode;
    //返回信息
    private String  returnMessage;

    ResultStatus(Integer returnCode, String returnMessage) {
        this.returnCode = returnCode;
        this.returnMessage = returnMessage;
    }

    public Integer getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(Integer returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }
}
